import React, { useState, useEffect, Component } from 'react';
import { View, Text, TouchableHighlight } from 'react-native';

export default function WaitPayOrder() {
    //   constructor(props) {
    //     super(props);
    //     this.state = {
    //     };
    //   }

    const [info, setInfo] = useState('123')

    changeText = () => {
        setInfo('111111')
    }

    return (
        <View style={{ flex: 1 }}>
            <TouchableHighlight onPress={this.changeText} style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
                <Text>{info}</Text>
            </TouchableHighlight>
        </View>
    );
}
